-- GENERATED SPELL FOR [Tideress] --


function spell0_12759(pUnit, Event) --@Foul Chill,n/a--
pUnit:FullCastSpellOnTarget(6873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12759', 640, 1)
end

function spell1_12759(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12759', 7000, 1)
end

function Sorts_12759(pUnit, Event)
local choix_sorts_12759 = math.random(0, 1)
if choix_sorts_12759 == 0 then
pUnit:RegisterEvent('spell0_12759', 1, 1)
end
if choix_sorts_12759 == 1 then
pUnit:RegisterEvent('spell1_12759', 1, 1)
end
end

function mob12759_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12759', math.random(1500, 3000), 1)
end

function mob12759_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12759_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12759_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12759, 1, 'mob12759_Action')
RegisterUnitEvent(12759, 2, 'mob12759_Leave')
RegisterUnitEvent(12759, 3, 'mob12759_Kill')
RegisterUnitEvent(12759, 4, 'mob12759_Die')
